﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductionManagement.Domain.ProductionDomain
{
    /// <summary>
    /// 生产订单
    /// </summary>
    [SugarTable("ProduceOrders")]
    public class ProduceOrders : Audit
    {
        /// <summary>
        /// 生产订单id
        /// </summary>
        [SugarColumn(IsIdentity =true,IsPrimaryKey =true)]
        public int POId { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)")]//设计长度
        public string? POrderNumber { get; set; }
        /// <summary>
        /// 生产订单主题
        /// </summary>
        public string? POrderTopic { get; set; }
        /// <summary>
        /// 制单人员
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)")]//设计长度
        public string? PDocumentMakers { get; set; }
        /// <summary>
        /// 制单日期
        /// </summary>
        public DateTime ? PDocumentDate { get; set; }
        /// <summary>
        /// 生产计划id
        /// </summary>
        public int? ProductionPlansId { get; set; }
        /// <summary>
        ///  计划名称
        /// </summary>
        public string? PPlanName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(200)")]//设计长度
        public string? PRemark { get; set; }
        /// <summary>
        /// 销售合同id
        /// </summary>
        public int? SaleContractId { get; set; }
        /// <summary>
        /// 合同主题
        /// </summary>
        public string? ContractTopic { get; set; }
        /// <summary>
        /// 数据合计
        /// </summary>
        public int?  TotalData { get; set; }

    }
}
